<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/Thread.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('Thread_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Thread.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Thread_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __MULTITHREAD_H_</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __MULTITHREAD_H_</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;pthread.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="group__threads.html#gaf5d0ae569fdc16f5708d68f64457ed79">   35</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">void</span>* (*ThreadEntryFunction)( <span class="keywordtype">void</span>* user_param );</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classThread.html">   44</a></span>&#160;<span class="keyword">class </span><a class="code" href="classThread.html">Thread</a></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <a class="code" href="classThread.html#a95c703fb8f2f27cb64f475a8c940864a">Thread</a>();</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classThread.html#a026b23628e1727050e864e00489c0baf">~Thread</a>();</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classThread.html#ac852bc49c5bf8c2f448e4df85b1a4cae">Run</a>();</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classThread.html#aeb4de8e03ee2008da85d695d64cf8ad6">StartThread</a>();</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classThread.html#aeb4de8e03ee2008da85d695d64cf8ad6">StartThread</a>( <a class="code" href="group__threads.html#gaf5d0ae569fdc16f5708d68f64457ed79">ThreadEntryFunction</a> entry, <span class="keywordtype">void</span>* user_param=NULL );</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        </div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classThread.html#ae1921e898030889d5efa0b816af73ae5">StopThread</a>();</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classThread.html#ac1bccfcc9119d0c9f8dc95ef13175c74">InitRealtime</a>();</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        </div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classThread.html#a11087c8d97fc7b7c2ab37576acee61a3">GetMaxPriority</a>();</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        </div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classThread.html#adc90bfb74a4f32b717c681a6a073f70a">GetMinPriority</a>();</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classThread.html#ad69f498b3cbc8ec002238b74672b7aa2">GetPriority</a>( pthread_t* thread=NULL );</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classThread.html#a4bebcec1fe0fc8b0c1e8010a15bf6493">SetPriority</a>( <span class="keywordtype">int</span> priority, pthread_t* thread=NULL );</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="classThread.html#a04d3a576997c17f058273831630cc394">GetPriorityLevel</a>();</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classThread.html#a46f5f8800a58219817127784c75ed1ba">SetPriorityLevel</a>( <span class="keywordtype">int</span> priority );</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classThread.html#a3013f9ed28496e937143b9807ba6bd72">Yield</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ms );</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classThread.html#a92c0628fe5ba0bb5bd3845bfb9718dc5">  126</a></span>&#160;        <span class="keyword">inline</span> pthread_t* <a class="code" href="classThread.html#a92c0628fe5ba0bb5bd3845bfb9718dc5">GetThreadID</a>()                                                 { <span class="keywordflow">return</span> &amp;<a class="code" href="classThread.html#a7599581878120ead1dd50636f3806afd">mThreadID</a>; }</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classThread.html#a786ef18c62603f0fe041e95391637740">LockAffinity</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> cpu );</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classThread.html#a8b944c18ba34a7fdb04dd65c754b6366">SetAffinity</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> cpu, pthread_t* thread=NULL );</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classThread.html#aca2de16d52730f2c5f247b816ed1a064">GetCPU</a>();</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span>* <a class="code" href="classThread.html#a44f69c6f9bc3fe0899e48216d2dad3f6">DefaultEntry</a>( <span class="keywordtype">void</span>* param );</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classThread.html#a7599581878120ead1dd50636f3806afd">  151</a></span>&#160;        pthread_t <a class="code" href="classThread.html#a7599581878120ead1dd50636f3806afd">mThreadID</a>;</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classThread.html#ab34c3d6ae645c5aed480b86855b9253c">  152</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classThread.html#ab34c3d6ae645c5aed480b86855b9253c">mThreadStarted</a>;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;};</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classThread_html_a44f69c6f9bc3fe0899e48216d2dad3f6"><div class="ttname"><a href="classThread.html#a44f69c6f9bc3fe0899e48216d2dad3f6">Thread::DefaultEntry</a></div><div class="ttdeci">static void * DefaultEntry(void *param)</div></div>
<div class="ttc" id="group__threads_html_gaf5d0ae569fdc16f5708d68f64457ed79"><div class="ttname"><a href="group__threads.html#gaf5d0ae569fdc16f5708d68f64457ed79">ThreadEntryFunction</a></div><div class="ttdeci">void *(* ThreadEntryFunction)(void *user_param)</div><div class="ttdoc">Function pointer typedef representing a thread&amp;#39;s main entry point. </div><div class="ttdef"><b>Definition:</b> Thread.h:35</div></div>
<div class="ttc" id="classThread_html_a3013f9ed28496e937143b9807ba6bd72"><div class="ttname"><a href="classThread.html#a3013f9ed28496e937143b9807ba6bd72">Thread::Yield</a></div><div class="ttdeci">static void Yield(unsigned int ms)</div><div class="ttdoc">Whatever thread you are calling from, yield the processor for the specified number of milliseconds...</div></div>
<div class="ttc" id="classThread_html_ab34c3d6ae645c5aed480b86855b9253c"><div class="ttname"><a href="classThread.html#ab34c3d6ae645c5aed480b86855b9253c">Thread::mThreadStarted</a></div><div class="ttdeci">bool mThreadStarted</div><div class="ttdef"><b>Definition:</b> Thread.h:152</div></div>
<div class="ttc" id="classThread_html_a92c0628fe5ba0bb5bd3845bfb9718dc5"><div class="ttname"><a href="classThread.html#a92c0628fe5ba0bb5bd3845bfb9718dc5">Thread::GetThreadID</a></div><div class="ttdeci">pthread_t * GetThreadID()</div><div class="ttdoc">Get thread identififer. </div><div class="ttdef"><b>Definition:</b> Thread.h:126</div></div>
<div class="ttc" id="classThread_html_ac1bccfcc9119d0c9f8dc95ef13175c74"><div class="ttname"><a href="classThread.html#ac1bccfcc9119d0c9f8dc95ef13175c74">Thread::InitRealtime</a></div><div class="ttdeci">static void InitRealtime()</div><div class="ttdoc">Prime the system for realtime use. </div></div>
<div class="ttc" id="classThread_html_a8b944c18ba34a7fdb04dd65c754b6366"><div class="ttname"><a href="classThread.html#a8b944c18ba34a7fdb04dd65c754b6366">Thread::SetAffinity</a></div><div class="ttdeci">static bool SetAffinity(unsigned int cpu, pthread_t *thread=NULL)</div><div class="ttdoc">Lock the specified thread&amp;#39;s affinity to a CPU core. </div></div>
<div class="ttc" id="classThread_html_a026b23628e1727050e864e00489c0baf"><div class="ttname"><a href="classThread.html#a026b23628e1727050e864e00489c0baf">Thread::~Thread</a></div><div class="ttdeci">virtual ~Thread()</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="classThread_html_a4bebcec1fe0fc8b0c1e8010a15bf6493"><div class="ttname"><a href="classThread.html#a4bebcec1fe0fc8b0c1e8010a15bf6493">Thread::SetPriority</a></div><div class="ttdeci">static int SetPriority(int priority, pthread_t *thread=NULL)</div><div class="ttdoc">Set the priority level of the thread. </div></div>
<div class="ttc" id="classThread_html_ae1921e898030889d5efa0b816af73ae5"><div class="ttname"><a href="classThread.html#ae1921e898030889d5efa0b816af73ae5">Thread::StopThread</a></div><div class="ttdeci">void StopThread()</div><div class="ttdoc">Halt execution of the thread. </div></div>
<div class="ttc" id="classThread_html_a11087c8d97fc7b7c2ab37576acee61a3"><div class="ttname"><a href="classThread.html#a11087c8d97fc7b7c2ab37576acee61a3">Thread::GetMaxPriority</a></div><div class="ttdeci">static int GetMaxPriority()</div><div class="ttdoc">Get the maximum priority level available. </div></div>
<div class="ttc" id="classThread_html_a7599581878120ead1dd50636f3806afd"><div class="ttname"><a href="classThread.html#a7599581878120ead1dd50636f3806afd">Thread::mThreadID</a></div><div class="ttdeci">pthread_t mThreadID</div><div class="ttdef"><b>Definition:</b> Thread.h:151</div></div>
<div class="ttc" id="classThread_html_a46f5f8800a58219817127784c75ed1ba"><div class="ttname"><a href="classThread.html#a46f5f8800a58219817127784c75ed1ba">Thread::SetPriorityLevel</a></div><div class="ttdeci">bool SetPriorityLevel(int priority)</div><div class="ttdoc">Set this thread&amp;#39;s priority level. </div></div>
<div class="ttc" id="classThread_html_adc90bfb74a4f32b717c681a6a073f70a"><div class="ttname"><a href="classThread.html#adc90bfb74a4f32b717c681a6a073f70a">Thread::GetMinPriority</a></div><div class="ttdeci">static int GetMinPriority()</div><div class="ttdoc">Get the minimum priority level avaiable. </div></div>
<div class="ttc" id="classThread_html_ad69f498b3cbc8ec002238b74672b7aa2"><div class="ttname"><a href="classThread.html#ad69f498b3cbc8ec002238b74672b7aa2">Thread::GetPriority</a></div><div class="ttdeci">static int GetPriority(pthread_t *thread=NULL)</div><div class="ttdoc">Get the priority level of the thread. </div></div>
<div class="ttc" id="classThread_html_a04d3a576997c17f058273831630cc394"><div class="ttname"><a href="classThread.html#a04d3a576997c17f058273831630cc394">Thread::GetPriorityLevel</a></div><div class="ttdeci">int GetPriorityLevel()</div><div class="ttdoc">Get this thread&amp;#39;s priority level. </div></div>
<div class="ttc" id="classThread_html"><div class="ttname"><a href="classThread.html">Thread</a></div><div class="ttdoc">Thread class for launching an asynchronous operating-system dependent thread. </div><div class="ttdef"><b>Definition:</b> Thread.h:44</div></div>
<div class="ttc" id="classThread_html_ac852bc49c5bf8c2f448e4df85b1a4cae"><div class="ttname"><a href="classThread.html#ac852bc49c5bf8c2f448e4df85b1a4cae">Thread::Run</a></div><div class="ttdeci">virtual void Run()</div><div class="ttdoc">User-implemented thread main() function. </div></div>
<div class="ttc" id="classThread_html_aeb4de8e03ee2008da85d695d64cf8ad6"><div class="ttname"><a href="classThread.html#aeb4de8e03ee2008da85d695d64cf8ad6">Thread::StartThread</a></div><div class="ttdeci">bool StartThread()</div><div class="ttdoc">Start the thread. </div></div>
<div class="ttc" id="classThread_html_a786ef18c62603f0fe041e95391637740"><div class="ttname"><a href="classThread.html#a786ef18c62603f0fe041e95391637740">Thread::LockAffinity</a></div><div class="ttdeci">bool LockAffinity(unsigned int cpu)</div><div class="ttdoc">Lock this thread to a CPU core. </div></div>
<div class="ttc" id="classThread_html_a95c703fb8f2f27cb64f475a8c940864a"><div class="ttname"><a href="classThread.html#a95c703fb8f2f27cb64f475a8c940864a">Thread::Thread</a></div><div class="ttdeci">Thread()</div><div class="ttdoc">Default constructor. </div></div>
<div class="ttc" id="classThread_html_aca2de16d52730f2c5f247b816ed1a064"><div class="ttname"><a href="classThread.html#aca2de16d52730f2c5f247b816ed1a064">Thread::GetCPU</a></div><div class="ttdeci">static int GetCPU()</div><div class="ttdoc">Look up which CPU core the thread is running on. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="Thread_8h.html">Thread.h</a></li>
    <li class="footer">Generated on Thu Sep 26 2019 12:19:11 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
